var a = getApp();

Page({
    data: {
        language: "",
        updateGoods: [],
        level_data: "",
        level_type: ""
    },
    onLoad: function(a) {
        this.setData({
            goods_id: a.goods_id
        }), this._getData();
    },
    _getData: function() {
        var e = this, t = a.getNetAddresss("plugin.video-demand.api.watch-level.condition");
        t += "&goods_id=" + e.data.goods_id, a._getNetWork({
            url: t,
            success: function(t) {
                1 == t.data.result && (console.log(t.data.data), a._isTextEmpty(t.data.data) || e.setData({
                    course_goods: t.data.data.course_goods,
                    level_data: t.data.data.level_data,
                    level_type: t.data.data.level_type
                }));
            },
            fail: function(a) {}
        });
    },
    gotoBuy: function(a) {
        var e = a.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageA/detail_v2/detail_v2?id=" + e
        });
    },
    goto: function() {
        wx.reLaunch({
            url: "/packageG/index/index"
        });
    },
    onReady: function() {
        var a = wx.getStorageSync("langIndex");
        this.setData({
            language: a.en
        }), wx.setNavigationBarTitle({
            title: "会员升级"
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    toRecharge: function(a) {
        var e = a.currentTarget.dataset.money;
        wx.navigateTo({
            url: "/packageA/member/balance/balance_recharge/balance_recharge?balance=" + e
        });
    }
});